package relationalQuery

import (
	"context"
	"gf-example/internal/service"

	"gf-example/api/relationalQuery/v1"
)

func (c *ControllerV1) ManyToMany(ctx context.Context, req *v1.ManyToManyReq) (res *v1.ManyToManyRes, errs error) {
	many, err := service.ManyToMany().FindByManyToMany(ctx)
	if err != nil {
		return nil, err
	}

	return many, nil
}
